import numpy
import sys,os,inspect
from PyQt4 import QtCore
from KIndicators.KBaseIndicator import KBaseIndicator
import pandas as pd
class K_MA(KBaseIndicator):
	''' moving average related indicators'''
	def __init__(self,parent=None):
		super(K_MA,self).__init__(self,parent)
	@staticmethod
	def calculateSMA(dataseries,windowlength):
		result=pd.rolling_mean(dataseries,windowlength)
		return result
		